package edu.whut.mall.portal.enums;

import lombok.Getter;

/**
 * @program: d9lab-mall
 * @description: 订单状态
 * @author: Wayne
 * @create: 2020-05-21 16:50
 **/
@Getter
public enum OrderStatusEnum {
    CANCELED(0, "已取消"),

    NO_PAY(10, "未付款"),

    PAID(20, "已付款"),

    NOT_SHIPPED(30, "待发货"),

    SHIPPED(40, "已发货"),

    TRADE_SUCCESS(50, "交易成功"),

    TRADE_CLOSE(60, "交易关闭"),

    WAIT_REFUND(70, "待退款"),

    REFUNDED(80, "已退款"),

    REJECT_REFUND(90, "拒绝退款")
    ;

    Integer code;

    String desc;

    OrderStatusEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
